#include <stdio.h>

int main(void)
{
    struct Test
    {
        int x;
        int y;
    }t1, t2;
//x,y为成员, t1,t2为变量
    t1.x = 3;
    t1.y = 4;

    t2 = t1;        //只要两个结构体t1,t2类型一致,
                    //就可以用'='传递变量下的成员

    printf("t2.x = %d, t2.y = %d\n", t2.x, t2.y);

    return 0;
}
